#include "colour.h"


/* Multiply Colours */
colour colourMul(colour *c1, colour *c2){
	colour c = {c1->red * c2->red, c1->green * c2->green, c1->blue * c2->blue};
	return c;
}


/* Add Colours */
colour colourAdd(colour *c1, colour *c2){
	colour c = {c1->red + c2->red, c1->green + c2->green, c1->blue + c2->blue};
	return c;
}

/* Multiply Colour with Coefficient */
colour colourCoefMul(float coef, colour *c){
	colour result = {c->red * coef, c->green * coef, c->blue * coef};
	return result;
}
